﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LinqToBing.Bing.Wrapper.Enums;

namespace LinqToBing.Bing.Wrapper.ExtensionMethods
{
    public static class ListSearchTypeContainer
    {
        public static List<SearchSource> GetSources(this List<SearchTypeContainer> list)
        {
            List<SearchSource> Result = new List<SearchSource>();

            list.ForEach(searchTypeContainer => Result.Add( searchTypeContainer.SearchSource));

            return Result;
        }
    }
}
